import base from './base'
import axios from '../utils/request'


const api={
  /* 
  登录接口
  */
 login(params){
   return axios.post(base.baseUrl+base.login,params)
 },
 register(params){
  return axios.post(base.baseUrl+base.register,params)
 },
 selectTbItemAllByPage(params){
   return axios.get(base.baseUrl+base.selectTbItemAllByPage,{
     params
   })
 },
 total(){
   return axios.get(base.baseUrl+base.total);
 },
 search(params){
   return axios.get(base.baseUrl+base.search,{params});
 },
 selectItemCategoryByParentId(params){
   return axios.get(base.baseUrl+base.selectItemCategoryByParentId,{params})
 },
 insertTbItem(params){
   return axios.get(base.baseUrl+base.insertTbItem,{params})
 },
 deleteItemById(params){
   return axios.get(base.baseUrl+base.deleteItemById,{params})
 },
 preUpdateItem(params){
   return axios.get(base.baseUrl+base.preUpdateItem,{params})
 },
 updateTbItem(params){
   return axios.get(base.baseUrl+base.updateTbItem,{params})
 },
 selectItemParamAll(params){
   return axios.get(base.baseUrl+base.selectItemParamAll,{params})
 },
 insertItemParam(params){
   return axios.get(base.baseUrl+base.insertItemParam,{params})
 },
 deleteParams(params){
   return axios.get(base.baseUrl+base.deleteParams,{params})
 },
 paramsItem(params){
   return axios.get(base.baseUrl+base.paramsItem,{params})
 }
}
export default api